package org.asiainfo.system.domain;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;

/**
 * 操作日志记录(SysOperationLog)实体类
 *
 * @author dotor-ww
 * @since 2024-01-28 20:51:11
 */
@Data
@Table("sys_operation_log")
public class SysOperationLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 日志主键
     */
    @Id
    @Column(value = "operation_id")
    private Long operationId;
    /**
     * 模块标题
     */
    @Column(value = "title")
    private String title;
    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    @Column(value = "business_type")
    private Integer businessType;
    /**
     * 方法名称
     */
    @Column(value = "method")
    private String method;
    /**
     * 请求方式
     */
    @Column(value = "request_method")
    private String requestMethod;
    /**
     * 操作类别（0其它 1后台用户 2手机端用户）
     */
    @Column(value = "operator_type")
    private Integer operatorType;
    /**
     * 操作人员
     */
    @Column(value = "operation_name")
    private String operationName;
    /**
     * 部门名称
     */
    @Column(value = "dept_name")
    private String deptName;
    /**
     * 请求URL
     */
    @Column(value = "operation_url")
    private String operationUrl;
    /**
     * 主机地址
     */
    @Column(value = "operation_ip")
    private String operationIp;
    /**
     * 操作地点
     */
    @Column(value = "operation_location")
    private String operationLocation;
    /**
     * 请求参数
     */
    @Column(value = "operation_param")
    private String operationParam;
    /**
     * 返回参数
     */
    @Column(value = "json_result")
    private String jsonResult;
    /**
     * 操作状态（0正常 1异常）
     */
    @Column(value = "status")
    private Integer status;
    /**
     * 错误消息
     */
    @Column(value = "error_msg")
    private String errorMsg;
    /**
     * 操作时间
     */
    @Column(value = "operation_time")
    private Date operationTime;
    /**
     * 消耗时间
     */
    @Column(value = "cost_time")
    private Long costTime;
    /**
     * 租户ID
     */
    @Column(value = "tenant_id")
    private Long tenantId;
}

